package com.zbkj.common.utils;

public class PhoneNumberUtil {

    public static String maskPhoneNumber(String phoneNumber){
        if (phoneNumber.matches("^1[3-9]\\d{9}$")) {
            return phoneNumber.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
        } else {
            return null;
        }
    }
}
